/**
 *
 */
package net.oschina.git.haxteam.zrank.main;

import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import net.oschina.git.haxteam.zrank.jdbc.dbManager;
import net.oschina.git.haxteam.zrank.storage.YamlFile;

/**
 * @author qq996
 *
 */
public class Main extends JavaPlugin{

	public static FileConfiguration config;

	private static Plugin instance;

	public static void main(String[] args) {
		config = new YamlFile("config.yml").getConfig();
		System.out.println("[等级&成就]读取配置文件成功");
		dbManager.InitializationTable();
	}

	@Override
	public void onEnable(){
		instance = this;
		load();
		dbManager.InitializationTable();

	}

	@Override
	public void onDisable(){

	}

	public void load(){
		config = new YamlFile("config.yml").getConfig();
		System.out.println("[等级&成就]读取配置文件成功");
	}

	public static Plugin getInstance(){
		return instance;
	}

}
